package cn.jltx.abslistviewadapterdemo;

import android.content.Context;
import android.content.res.Resources;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2016/05/04.
 */

public class Utils {

    public static int getResourcesIdFromName(Context context,String drawableDic,String drawableName){
        int resultId = 0;
        if(context != null){
            Resources res = context.getResources();
            resultId = res.getIdentifier(drawableName,drawableDic,context.getPackageName());

        }
        return  resultId;
    }
}
